﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CommonLib {
    public struct Material {
        public Vector3c color;
        public double diffuse, reflection, specular, refrIndex, refraction;
        public Material(Vector3c _color, double _diffuse, double _reflection, double _refrIndex) {
            color = _color;
            diffuse = _diffuse;
            reflection = _reflection;
            specular = 1.0 - _diffuse;
            refraction = 1.0 - _reflection;
            refrIndex = _refrIndex;
        }
        public Material(Material clone) {
            color = clone.color;
            diffuse = clone.diffuse;
            reflection = clone.reflection;
            specular = 1.0 - clone.diffuse;
            refraction = clone.refraction;
            refrIndex = clone.refrIndex;
        }
    }
}
